package net.dubboclub.maven;

import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.ResolutionScope;

import java.io.IOException;

@Mojo( name = "pack", defaultPhase = LifecyclePhase.INSTALL, threadSafe = true, requiresDependencyResolution = ResolutionScope.COMPILE )
public class PackDubbomMojo extends AbstractDubbomMojo{

    public void execute() throws MojoExecutionException {
        try {
            pack(true);
        } catch (IOException e) {
            throw new MojoExecutionException("Fail to pack.",e);
        }
    }

}
